<aside class="sidebar sidebar--hidden toggled">
    <div class="scrollbar-inner">
        <div class="user">
            <div class="user__info" data-toggle="dropdown">
                <img class="user__img user_head" src="/upload/avatar/#(loginAccount.avatar)" alt="">
                <div>
                    <div class="user__name" data-nick="#(loginAccount.fullName)" >#(loginAccount.fullName)</div>
                </div>
            </div>
            <div class="dropdown-menu">
                <a data-pjax class="dropdown-item"
                   href="/admin/sys/account/addOrEdit?id=#(loginAccount.id)&p=1&s=10">修改个人信息</a>
                <a data-pjax class="dropdown-item"
                   href="/admin/sys/account/updatePassword?id=#(loginAccount.id)">修改密码</a>
                <a class="dropdown-item" href="/">前台</a>
                <a class="dropdown-item" href="/logout">退出</a>
            </div>
        </div>
        <ul class="navigation" id="navigation_menu" style="overflow-y: visible">
        </ul>
    </div>
</aside>


<!--没有权限的菜单隐藏1-->
<script>
    $(document).ready(function () {
        var elementsByClassName = $(".navigation__sub");
        $.each(elementsByClassName, function (k, v) {
            if (!$(v).has('li').length) {
                $(v).hide();
            }
        })
    })
</script>
